//
//  XLGDownloadPool.h
//  etionCBLogic
//
//  Created by wjxfhxy on 15-8-19.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

@class XLGDownloadPool;

@class XLGDownloadPoolItem;

@class XLGDownloadIndex;

@class XLGDownloadOperation;

@interface XLGDownloadPoolItem : NSObject

@end


@interface XLGDownloadPool : NSObject

@property(nonatomic,assign) NSUInteger maxCount;

@property(nonatomic,readonly) NSUInteger currentCount;

- (BOOL)addDownloadOperation:(XLGDownloadPoolItem*)downloadOperation;

@end

@interface XLGDownloadPool(XLGDownloadOperation)

- (XLGDownloadOperation*)findDownloadOperationWithDownloadIndex:(XLGDownloadIndex*)dli;

@end
